<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ajax</title>
<script src="/static/js/jquery-2.0.2.min.js"></script>
<script src="/static/js/jquery.form.js"></script>
<style>
body{
	font-size:40px;
}
</style>
</head>
<body>
<form action="" method="post" id="myform">
<table width="98%" border="1">
  <tbody>
    <tr>
      <td align="right">栏目</td>
      <td>
      <select name="aaa" id="" multiple>
      	<option value="1">娱乐</option>
      	<option value="2">体育</option>
      	<option value="3">军事</option>
      </select>
      </td>
    </tr>
    <tr>
      <td align="right">爱好</td>
      <td>
      <label><input type="checkbox" name="hobby[]" value="1"> 足球</label>
      <label><input type="checkbox" name="hobby[]" value="2"> 排球</label>
      <label><input type="checkbox" name="hobby[]" value="3"> 蓝球</label>
      </td>
    </tr>
    
    <tr>
      <td colspan="2" align="center"><input type="submit" value="提交" name="submit"></td>
    </tr>
  </tbody>
</table>
</form>
<script>
$(document).ready(function(e) {
//    $('#myform').submit(function(){
//		
//		$(this).ajaxSubmit({
//			success: function(data){
//				console.log(data);
//			}
//		});
//		return false;	
//	});	
	
});
</script>
</body>
</html>
